<?php echo '<?php'; ?>

namespace App\Models\Auto;

use App\Models\BaseModel;

class Base{{$class}} extends BaseModel {
    public $incrementing = {{$increment}};
    /**
     * @var String
     */
    protected $table = '{{$table}}';

    public {{$dollar}}timestamps = {{$timestamps}};

    @if (!empty($tableInfo['primary']))
    /**
     * @var String
     */
    protected $primaryKey = '{{$tableInfo['primary']}}';
    @endif

    @foreach($tableInfo['columns'] as $column)

    /**
    * {{$column['comment']}}
    */
    public function get_{{$column['name']}}()
    {
    return $this->{{$column['name']}};
    }

    {{-- @if (!\Illuminate\Support\Str::contains($column['name'], 'id')) --}}

    /**
    * {{$column['comment']}}
    * @var {{$column['type']}}
    */
    public function set_{{$column['name']}}($value)
    {
        $this->{{$column['name']}} = $value;
    }
    {{-- @endif --}}

    @endforeach

}